package org.budo.cmbc.direct.sdk.entity;

import java.util.List;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class MEEAcnoTrsJnlQueryResponse extends AbstractCmbcDirectResponse {
    private static final long serialVersionUID = -3348018694577827407L;

    /**
     * 渠道交易号
     */
    private String channelJnlNo;
    /**
     * 总笔数
     */
    private String totalCount;

    List<MEEAcnoTrsJnl> list;

    List list1;

    public MEEAcnoTrsJnlQueryResponse(String channelJnlNo, String responseJson) {
        super(channelJnlNo, responseJson);
        JSONObject json = JSON.parseObject(responseJson);
        this.channelJnlNo = json.getString("ChannelJnlNo");
        this.totalCount = json.getString("TotalCount");
        this.list = json.getJSONArray("List").toJavaList(MEEAcnoTrsJnl.class);
    }
}
